import React, { Component } from 'react';
import { CommonContext } from '../CommonContext';
const { Consumer } = CommonContext; //组件之间传值

export default class ConsumerChild extends Component {
  render() {
    return (
      <Consumer>
        {value => {
          return <div>{value}aaaa</div>;
        }}
      </Consumer>
    );
  }
}
